#include <vcf/third_party/gtest/gtest.h>
#include "../../src/password_generator/strength_checker.h"

namespace Test
{


TEST(StrengthChecker,WeakPasswordTableInit)
{
	KeenSafe::WeakPasswordTable weaktable;
	EXPECT_EQ(weaktable.get()[0].compare("password"),0);
}

TEST(RegexStrengthChecker,CheckUpperCase)
{
	std::string cmp("aa");
	EXPECT_EQ(KeenSafe::RegexStrengthChecker::CheckUpperCase(cmp),false);
	cmp = "Aa";
	EXPECT_EQ(KeenSafe::RegexStrengthChecker::CheckUpperCase(cmp),false);
	cmp = "AA";
	EXPECT_EQ(KeenSafe::RegexStrengthChecker::CheckUpperCase(cmp),true);

}

}